package com.qianfeng.openapi.web.master.service;

import com.baomidou.mybatisplus.extension.api.R;
import com.qianfeng.openapi.web.master.dto.TableData;
import com.qianfeng.openapi.web.master.dto.TableParam;
import com.qianfeng.openapi.web.master.entity.ScheduleJob;

import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/27
 * @Time: 下午2:59
 */
public interface ScheduleJobService {

    public R  saveSchedule(ScheduleJob scheduleJob);
    public R  findScheduleById(Long id);
    public R  updateSchedule(ScheduleJob scheduleJob);

    public R  deleteSchedule(List<Long> ids);

    public R  pauseSchedule(List<Long> ids);

    public R  resumeSchedule(List<Long> ids);

    public R  runOnceSchedule(List<Long> ids);

    TableData scheduleList(TableParam param);

}
